package ppt

import (
	"context"

	v1 "web-ppt/api/ppt/v1"

	"github.com/gogf/gf/v2/frame/g"
)

func (c *ControllerV1) DianjiIndex(ctx context.Context, req *v1.DianjiIndexReq) (res *v1.DianjiIndexRes, err error) {
	r, err := c.ppt.ListDianji(ctx)
	c.view.RenderTpl(ctx, "ppt/dianji.html", g.Map{
		"dianji": r,
	})
	return nil, err
}
